CUjit_option_enum

Online compiler and linker options

Values

ValueMeaning
CU_JIT_MAX_REGISTERS0

Max number of registers that a thread may use.\n Option type: unsigned int\n Applies to: compiler only

CU_JIT_THREADS_PER_BLOCK1

IN: Specifies minimum number of threads per block to target compilation for\n OUT: Returns the number of threads the compiler actually targeted. This restricts the resource utilization fo the compiler (e.g. max registers) such that a block with the given number of threads should be able to launch based on register limitations. Note, this option does not currently take into account any other resource limitations, such as shared memory utilization.\n Cannot be combined with ::CU_JIT_TARGET.\n Option type: unsigned int\n Applies to: compiler only

CU_JIT_WALL_TIME2

Overwrites the option value with the total wall clock time, in milliseconds, spent in the compiler and linker\n Option type: float\n Applies to: compiler and linker

CU_JIT_INFO_LOG_BUFFER3

Pointer to a buffer in which to print any log messages that are informational in nature (the buffer size is specified via option ::CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES)\n Option type: char *\n Applies to: compiler and linker

CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES4

IN: Log buffer size in bytes. Log messages will be capped at this size (including null terminator)\n OUT: Amount of log buffer filled with messages\n Option type: unsigned int\n Applies to: compiler and linker

CU_JIT_ERROR_LOG_BUFFER5

Pointer to a buffer in which to print any log messages that reflect errors (the buffer size is specified via option ::CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES)\n Option type: char *\n Applies to: compiler and linker

CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES6

IN: Log buffer size in bytes. Log messages will be capped at this size (including null terminator)\n OUT: Amount of log buffer filled with messages\n Option type: unsigned int\n Applies to: compiler and linker

CU_JIT_OPTIMIZATION_LEVEL7

Level of optimizations to apply to generated code (0 - 4), with 4 being the default and highest level of optimizations.\n Option type: unsigned int\n Applies to: compiler only

CU_JIT_TARGET_FROM_CUCONTEXT8

No option value required. Determines the target based on the current attached context (default)\n Option type: No option value needed\n Applies to: compiler and linker

CU_JIT_TARGET9

Target is chosen based on supplied ::CUjit_target. Cannot be combined with ::CU_JIT_THREADS_PER_BLOCK.\n Option type: unsigned int for enumerated type ::CUjit_target\n Applies to: compiler and linker

CU_JIT_FALLBACK_STRATEGY10

Specifies choice of fallback strategy if matching cubin is not found. Choice is based on supplied ::CUjit_fallback. This option cannot be used with cuLink* APIs as the linker requires exact matches.\n Option type: unsigned int for enumerated type ::CUjit_fallback\n Applies to: compiler only

CU_JIT_GENERATE_DEBUG_INFO11

Specifies whether to create debug information in output (-g) (0: false, default)\n Option type: int\n Applies to: compiler and linker

CU_JIT_LOG_VERBOSE12

Generate verbose log messages (0: false, default)\n Option type: int\n Applies to: compiler and linker

CU_JIT_GENERATE_LINE_INFO13

Generate line number information (-lineinfo) (0: false, default)\n Option type: int\n Applies to: compiler only

CU_JIT_CACHE_MODE14

Specifies whether to enable caching explicitly (-dlcm) \n Choice is based on supplied ::CUjit_cacheMode_enum.\n Option type: unsigned int for enumerated type ::CUjit_cacheMode_enum\n Applies to: compiler only

CU_JIT_NUM_OPTIONS15

Meta